package cn.com.simple.learning.designpattern.create.abstractfactory;

/**
 * @author Jianxing.Jia
 * @date 2022/2/7
 * @description 描述信息
 */
public class BrandCarFactory extends AbstractFactory {

    @Override
    Vehicle getVehicle(String type) {
        switch (type) {
            case "benz":
                return new BenzCar();
            case "bmw":
                return new BMWCar();
            default:
                return null;
        }
    }
}
